package atguigu.pUtils;

public class PrincipalPath {

    public static ActPaths actPaths = new ActPaths();

    public static void main(String[] args) {

        // a,2,-
        ActItem a = new ActItem("a",2);
        ActItem b = new ActItem("b",3);
        ActItem c = new ActItem("c",4);
        ActItem d = new ActItem("d",2);
        ActItem e = new ActItem("e",5);
        ActItem f = new ActItem("f",6);

        actPaths.addItems(a,b,c,d,e,f);
        connect(a,b);
        connect(a,c);
        connect(b,d);
        connect(d,e);
        connect(c,f);
        connect(e,f);


        System.out.println(a);
        System.out.println(b);
        System.out.println(c);
        System.out.println(d);
        System.out.println(e);
        System.out.println(f);

    }

    private static void createItem(String name, int day) {
        ActItem a = new ActItem(name,day);
        actPaths.addItems(a);
    }

    private static void connect(ActItem a, ActItem b) {
        ActLine line1 = new ActLine();
        line1.connect(a,b);
    }

}
